include_directories(${PROJECT_SOURCE_DIR}/common/utils/include)
include_directories(${PROJECT_SOURCE_DIR}/base/common/include)
include_directories(${PROJECT_SOURCE_DIR}/base/media/include)
include_directories(${PROJECT_SOURCE_DIR}/foundation/stream_service/include)
include_directories(${PROJECT_SOURCE_DIR}/base/web_server/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/include)
include_directories(${PROJECT_SOURCE_DIR}/hal/init/include)

link_directories(${PROJECT_SOURCE_DIR}/third_party/lib/${CMAKE_SYSTEM_PROCESSOR})
link_libraries(-Wl,--start-group ${EL_ALL_LIBS} gtest gtest_main -Wl,--end-group)

# 添加测试
enable_testing()

# 添加测试可执行文件
add_executable(muxer_mp4_read_test
muxer_mp4_read_test.cpp 
)

add_executable(muxer_mp4_writer_test
muxer_mp4_writer_test.cpp
)

add_executable(pcm_aac_encoder_test
pcm_aac_encoder_test.cpp
)

# 添加测试
add_test(NAME MuxerMP4ReadTest COMMAND muxer_mp4_read_test)
add_test(NAME MuxerMP4WriterTest COMMAND muxer_mp4_writer_test)
add_test(NAME PcmAacEncoderTest COMMAND pcm_aac_encoder_test)
